import 'package:flutter/cupertino.dart';
class CountProvider extends ChangeNotifier {
  int _count = 0;
  get count => _count;
  void increase() {
    _count++;
    notifyListeners(); // 刷新ui
  }
  void decrease() {
    _count--;
    notifyListeners(); // 刷新ui
  }
}
